<template>
    <div class="platform-content">
        <h4 class="platform-content-title">
            <span>利润详情表</span>
            <div class="platform-list-op">
                <el-button
                        v-permission="'enterprise.enterprise.zb.income.statement.baseinfo.create'"
                        size="small"
                        type="primary"
                        @click="openCreate"
                >
                    新建
                </el-button>
                <el-button
                        size="mini"
                        type="success"
                        @click="changeSearch"
                >
                    收起/展开
                </el-button>
            </div>
        </h4>
        <div class="platform-content-info">
            <el-row>
                <el-form
                        ref="searchForm"
                        :inline="true"
                        :model="pageData"
                        class="platform-content-search-form-more"
                >
                    <el-row v-if="showSearch">
                                                <el-col :span="6">
                            <el-form-item label="营业收入">
                                <el-input
                                        v-model="pageData.operatingRevenue"
                                        placeholder="营业收入"
                                        maxlength="255"
                                        auto-complete="off"
                                        type="text"
                                />
                            </el-form-item>
                        </el-col>
                                                <el-col :span="6">
                            <el-form-item label="营业利润">
                                <el-input
                                        v-model="pageData.operatingProfit"
                                        placeholder="营业利润"
                                        maxlength="255"
                                        auto-complete="off"
                                        type="text"
                                />
                            </el-form-item>
                        </el-col>
                                                <el-col :span="6">
                            <el-form-item label="利润总额">
                                <el-input
                                        v-model="pageData.profitTotal"
                                        placeholder="利润总额"
                                        maxlength="255"
                                        auto-complete="off"
                                        type="text"
                                />
                            </el-form-item>
                        </el-col>
                                                <el-col :span="6">
                            <el-form-item label="净利润">
                                <el-input
                                        v-model="pageData.netProfit"
                                        placeholder="净利润"
                                        maxlength="255"
                                        auto-complete="off"
                                        type="text"
                                />
                            </el-form-item>
                        </el-col>
                                                <el-col :span="6">
                            <el-form-item label="其他综合收益的税后净额">
                                <el-input
                                        v-model="pageData.otherProfit"
                                        placeholder="其他综合收益的税后净额"
                                        maxlength="255"
                                        auto-complete="off"
                                        type="text"
                                />
                            </el-form-item>
                        </el-col>
                                                <el-col :span="6">
                            <el-form-item label="综合收益总额">
                                <el-input
                                        v-model="pageData.comprehensiveTotal"
                                        placeholder="综合收益总额"
                                        maxlength="255"
                                        auto-complete="off"
                                        type="text"
                                />
                            </el-form-item>
                        </el-col>
                                                <el-col :span="6">
                            <el-form-item label="每股收益">
                                <el-input
                                        v-model="pageData.earningsPeShare"
                                        placeholder="每股收益"
                                        maxlength="255"
                                        auto-complete="off"
                                        type="text"
                                />
                            </el-form-item>
                        </el-col>
                                                <el-col :span="6">
                            <el-form-item label="销售净利率">
                                <el-input
                                        v-model="pageData.marginSales"
                                        placeholder="销售净利率"
                                        maxlength="255"
                                        auto-complete="off"
                                        type="text"
                                />
                            </el-form-item>
                        </el-col>
                                                <el-col :span="6">
                            <el-form-item label="销售毛利率">
                                <el-input
                                        v-model="pageData.grossSales"
                                        placeholder="销售毛利率"
                                        maxlength="255"
                                        auto-complete="off"
                                        type="text"
                                />
                            </el-form-item>
                        </el-col>
                                                <el-col :span="6">
                            <el-form-item label="已获利息倍数">
                                <el-input
                                        v-model="pageData.interestCoverage"
                                        placeholder="已获利息倍数"
                                        maxlength="255"
                                        auto-complete="off"
                                        type="text"
                                />
                            </el-form-item>
                        </el-col>
                                                <el-col :span="6">
                            <el-form-item label="营业收入增长率">
                                <el-input
                                        v-model="pageData.revenueGrowth"
                                        placeholder="营业收入增长率"
                                        maxlength="255"
                                        auto-complete="off"
                                        type="text"
                                />
                            </el-form-item>
                        </el-col>
                                                <el-col :span="6">
                            <el-form-item label="企业id（wx_business_information表id）">
                                <el-input
                                        v-model="pageData.companyId"
                                        placeholder="企业id（wx_business_information表id）"
                                        maxlength="255"
                                        auto-complete="off"
                                        type="text"
                                />
                            </el-form-item>
                        </el-col>
                                                <el-col :span="6">
                            <el-form-item label="减：营业成本">
                                <el-input
                                        v-model="pageData.lessOperatingCosts"
                                        placeholder="减：营业成本"
                                        maxlength="255"
                                        auto-complete="off"
                                        type="text"
                                />
                            </el-form-item>
                        </el-col>
                                                <el-col :span="6">
                            <el-form-item label="税金及附加">
                                <el-input
                                        v-model="pageData.taxesSurcharges"
                                        placeholder="税金及附加"
                                        maxlength="255"
                                        auto-complete="off"
                                        type="text"
                                />
                            </el-form-item>
                        </el-col>
                                                <el-col :span="6">
                            <el-form-item label="销售费用">
                                <el-input
                                        v-model="pageData.sellingExpenses"
                                        placeholder="销售费用"
                                        maxlength="255"
                                        auto-complete="off"
                                        type="text"
                                />
                            </el-form-item>
                        </el-col>
                                                <el-col :span="6">
                            <el-form-item label="管理费用">
                                <el-input
                                        v-model="pageData.overhead"
                                        placeholder="管理费用"
                                        maxlength="255"
                                        auto-complete="off"
                                        type="text"
                                />
                            </el-form-item>
                        </el-col>
                                                <el-col :span="6">
                            <el-form-item label=" 财务费用">
                                <el-input
                                        v-model="pageData.financialExpenses"
                                        placeholder=" 财务费用"
                                        maxlength="255"
                                        auto-complete="off"
                                        type="text"
                                />
                            </el-form-item>
                        </el-col>
                                                <el-col :span="6">
                            <el-form-item label="资产减值损失">
                                <el-input
                                        v-model="pageData.impairmentLoss"
                                        placeholder="资产减值损失"
                                        maxlength="255"
                                        auto-complete="off"
                                        type="text"
                                />
                            </el-form-item>
                        </el-col>
                                                <el-col :span="6">
                            <el-form-item label="加：公允价值变动收益（损失以“－”号填列）">
                                <el-input
                                        v-model="pageData.expressedIncome"
                                        placeholder="加：公允价值变动收益（损失以“－”号填列）"
                                        maxlength="255"
                                        auto-complete="off"
                                        type="text"
                                />
                            </el-form-item>
                        </el-col>
                                                <el-col :span="6">
                            <el-form-item label="投资收益（损失以“－”号填列）">
                                <el-input
                                        v-model="pageData.investmentIncome"
                                        placeholder="投资收益（损失以“－”号填列）"
                                        maxlength="255"
                                        auto-complete="off"
                                        type="text"
                                />
                            </el-form-item>
                        </el-col>
                                                <el-col :span="6">
                            <el-form-item label="其中：对联营企业和合营企业的投资收益">
                                <el-input
                                        v-model="pageData.associatesVentures"
                                        placeholder="其中：对联营企业和合营企业的投资收益"
                                        maxlength="255"
                                        auto-complete="off"
                                        type="text"
                                />
                            </el-form-item>
                        </el-col>
                                                <el-col :span="6">
                            <el-form-item label="加：营业外收入">
                                <el-input
                                        v-model="pageData.plusIncome"
                                        placeholder="加：营业外收入"
                                        maxlength="255"
                                        auto-complete="off"
                                        type="text"
                                />
                            </el-form-item>
                        </el-col>
                                                <el-col :span="6">
                            <el-form-item label="其中：非流动资产处置利得">
                                <el-input
                                        v-model="pageData.gainsDisposal"
                                        placeholder="其中：非流动资产处置利得"
                                        maxlength="255"
                                        auto-complete="off"
                                        type="text"
                                />
                            </el-form-item>
                        </el-col>
                                                <el-col :span="6">
                            <el-form-item label="减：营业外支出">
                                <el-input
                                        v-model="pageData.lessExpenses"
                                        placeholder="减：营业外支出"
                                        maxlength="255"
                                        auto-complete="off"
                                        type="text"
                                />
                            </el-form-item>
                        </el-col>
                                                <el-col :span="6">
                            <el-form-item label=" 其中：非流动资产处置损失">
                                <el-input
                                        v-model="pageData.nonAssets"
                                        placeholder=" 其中：非流动资产处置损失"
                                        maxlength="255"
                                        auto-complete="off"
                                        type="text"
                                />
                            </el-form-item>
                        </el-col>
                                                <el-col :span="6">
                            <el-form-item label="减：所得税费用">
                                <el-input
                                        v-model="pageData.taxIncome"
                                        placeholder="减：所得税费用"
                                        maxlength="255"
                                        auto-complete="off"
                                        type="text"
                                />
                            </el-form-item>
                        </el-col>
                                                <el-col :span="6">
                            <el-form-item label="(一)以后不能重分类进损益的其他综合收益">
                                <el-input
                                        v-model="pageData.profitFutureIncome"
                                        placeholder="(一)以后不能重分类进损益的其他综合收益"
                                        maxlength="255"
                                        auto-complete="off"
                                        type="text"
                                />
                            </el-form-item>
                        </el-col>
                                                <el-col :span="6">
                            <el-form-item label="重新计量设定受益计划净负债或净资产的变动">
                                <el-input
                                        v-model="pageData.refreshNetAssets"
                                        placeholder="重新计量设定受益计划净负债或净资产的变动"
                                        maxlength="255"
                                        auto-complete="off"
                                        type="text"
                                />
                            </el-form-item>
                        </el-col>
                                                <el-col :span="6">
                            <el-form-item label="权益法下在被投资单位不能重分类进损益的其他综合收益中享有的份额">
                                <el-input
                                        v-model="pageData.underInvestee"
                                        placeholder="权益法下在被投资单位不能重分类进损益的其他综合收益中享有的份额"
                                        maxlength="255"
                                        auto-complete="off"
                                        type="text"
                                />
                            </el-form-item>
                        </el-col>
                                                <el-col :span="6">
                            <el-form-item label="(二)以后将重分类进损益的其他综合收益">
                                <el-input
                                        v-model="pageData.profitReclassified"
                                        placeholder="(二)以后将重分类进损益的其他综合收益"
                                        maxlength="255"
                                        auto-complete="off"
                                        type="text"
                                />
                            </el-form-item>
                        </el-col>
                                                <el-col :span="6">
                            <el-form-item label="权益法下在被投资单位以后将重分类进损益的其他综合收益中享有的份额">
                                <el-input
                                        v-model="pageData.comprehensive"
                                        placeholder="权益法下在被投资单位以后将重分类进损益的其他综合收益中享有的份额"
                                        maxlength="255"
                                        auto-complete="off"
                                        type="text"
                                />
                            </el-form-item>
                        </el-col>
                                                <el-col :span="6">
                            <el-form-item label="2.可供出售金融资产公允价值变动损益">
                                <el-input
                                        v-model="pageData.financialAssets"
                                        placeholder="2.可供出售金融资产公允价值变动损益"
                                        maxlength="255"
                                        auto-complete="off"
                                        type="text"
                                />
                            </el-form-item>
                        </el-col>
                                                <el-col :span="6">
                            <el-form-item label="3.持有至到期投资重分类可供出售金融资产损益">
                                <el-input
                                        v-model="pageData.maturityAssets"
                                        placeholder="3.持有至到期投资重分类可供出售金融资产损益"
                                        maxlength="255"
                                        auto-complete="off"
                                        type="text"
                                />
                            </el-form-item>
                        </el-col>
                                                <el-col :span="6">
                            <el-form-item label="4.现金流量套期损益的有效部分">
                                <el-input
                                        v-model="pageData.portionCash"
                                        placeholder="4.现金流量套期损益的有效部分"
                                        maxlength="255"
                                        auto-complete="off"
                                        type="text"
                                />
                            </el-form-item>
                        </el-col>
                                                <el-col :span="6">
                            <el-form-item label="5.外币财务报表折算差额">
                                <el-input
                                        v-model="pageData.foreignFinancial"
                                        placeholder="5.外币财务报表折算差额"
                                        maxlength="255"
                                        auto-complete="off"
                                        type="text"
                                />
                            </el-form-item>
                        </el-col>
                                                <el-col :span="6">
                            <el-form-item label="(一) 基本每股收益">
                                <el-input
                                        v-model="pageData.earningsPerShare"
                                        placeholder="(一) 基本每股收益"
                                        maxlength="255"
                                        auto-complete="off"
                                        type="text"
                                />
                            </el-form-item>
                        </el-col>
                                                <el-col :span="6">
                            <el-form-item label="(二) 稀释每股收益">
                                <el-input
                                        v-model="pageData.dilutedPerShare"
                                        placeholder="(二) 稀释每股收益"
                                        maxlength="255"
                                        auto-complete="off"
                                        type="text"
                                />
                            </el-form-item>
                        </el-col>
                                                <el-col :span="6">
                            <el-form-item label="删除标记">
                                <el-input
                                        v-model="pageData.isDelete"
                                        placeholder="删除标记"
                                        maxlength="255"
                                        auto-complete="off"
                                        type="text"
                                />
                            </el-form-item>
                        </el-col>
                                                <el-col :span="6" style="float:right;">
                            <div class="platform-content-search-op-more">
                                <el-button
                                        size="small"
                                        @click="doReSearch"
                                >
                                    重 置
                                </el-button>
                                <el-button
                                        size="small"
                                        type="primary"
                                        @click="doSearch"
                                >
                                    查 询
                                </el-button>
                            </div>
                        </el-col>
                    </el-row>
                </el-form>
            </el-row>
            <div class="platform-content-list">
                <div class="platform-content-list-table">
                    <el-table
                            v-loading="listLoading"
                            :data="listData"
                            stripe
                            @sort-change="doPageSort"
                    >
                                                    <el-table-column
                                    prop="operatingRevenue"
                                    label="营业收入"
                                    sortable
                            />
                                                    <el-table-column
                                    prop="operatingProfit"
                                    label="营业利润"
                                    sortable
                            />
                                                    <el-table-column
                                    prop="profitTotal"
                                    label="利润总额"
                                    sortable
                            />
                                                    <el-table-column
                                    prop="netProfit"
                                    label="净利润"
                                    sortable
                            />
                                                    <el-table-column
                                    prop="otherProfit"
                                    label="其他综合收益的税后净额"
                                    sortable
                            />
                                                    <el-table-column
                                    prop="comprehensiveTotal"
                                    label="综合收益总额"
                                    sortable
                            />
                                                    <el-table-column
                                    prop="earningsPeShare"
                                    label="每股收益"
                                    sortable
                            />
                                                    <el-table-column
                                    prop="marginSales"
                                    label="销售净利率"
                                    sortable
                            />
                                                    <el-table-column
                                    prop="grossSales"
                                    label="销售毛利率"
                                    sortable
                            />
                                                    <el-table-column
                                    prop="interestCoverage"
                                    label="已获利息倍数"
                                    sortable
                            />
                                                    <el-table-column
                                    prop="revenueGrowth"
                                    label="营业收入增长率"
                                    sortable
                            />
                                                    <el-table-column
                                    prop="companyId"
                                    label="企业id（wx_business_information表id）"
                                    sortable
                            />
                                                    <el-table-column
                                    prop="lessOperatingCosts"
                                    label="减：营业成本"
                                    sortable
                            />
                                                    <el-table-column
                                    prop="taxesSurcharges"
                                    label="税金及附加"
                                    sortable
                            />
                                                    <el-table-column
                                    prop="sellingExpenses"
                                    label="销售费用"
                                    sortable
                            />
                                                    <el-table-column
                                    prop="overhead"
                                    label="管理费用"
                                    sortable
                            />
                                                    <el-table-column
                                    prop="financialExpenses"
                                    label=" 财务费用"
                                    sortable
                            />
                                                    <el-table-column
                                    prop="impairmentLoss"
                                    label="资产减值损失"
                                    sortable
                            />
                                                    <el-table-column
                                    prop="expressedIncome"
                                    label="加：公允价值变动收益（损失以“－”号填列）"
                                    sortable
                            />
                                                    <el-table-column
                                    prop="investmentIncome"
                                    label="投资收益（损失以“－”号填列）"
                                    sortable
                            />
                                                    <el-table-column
                                    prop="associatesVentures"
                                    label="其中：对联营企业和合营企业的投资收益"
                                    sortable
                            />
                                                    <el-table-column
                                    prop="plusIncome"
                                    label="加：营业外收入"
                                    sortable
                            />
                                                    <el-table-column
                                    prop="gainsDisposal"
                                    label="其中：非流动资产处置利得"
                                    sortable
                            />
                                                    <el-table-column
                                    prop="lessExpenses"
                                    label="减：营业外支出"
                                    sortable
                            />
                                                    <el-table-column
                                    prop="nonAssets"
                                    label=" 其中：非流动资产处置损失"
                                    sortable
                            />
                                                    <el-table-column
                                    prop="taxIncome"
                                    label="减：所得税费用"
                                    sortable
                            />
                                                    <el-table-column
                                    prop="profitFutureIncome"
                                    label="(一)以后不能重分类进损益的其他综合收益"
                                    sortable
                            />
                                                    <el-table-column
                                    prop="refreshNetAssets"
                                    label="重新计量设定受益计划净负债或净资产的变动"
                                    sortable
                            />
                                                    <el-table-column
                                    prop="underInvestee"
                                    label="权益法下在被投资单位不能重分类进损益的其他综合收益中享有的份额"
                                    sortable
                            />
                                                    <el-table-column
                                    prop="profitReclassified"
                                    label="(二)以后将重分类进损益的其他综合收益"
                                    sortable
                            />
                                                    <el-table-column
                                    prop="comprehensive"
                                    label="权益法下在被投资单位以后将重分类进损益的其他综合收益中享有的份额"
                                    sortable
                            />
                                                    <el-table-column
                                    prop="financialAssets"
                                    label="2.可供出售金融资产公允价值变动损益"
                                    sortable
                            />
                                                    <el-table-column
                                    prop="maturityAssets"
                                    label="3.持有至到期投资重分类可供出售金融资产损益"
                                    sortable
                            />
                                                    <el-table-column
                                    prop="portionCash"
                                    label="4.现金流量套期损益的有效部分"
                                    sortable
                            />
                                                    <el-table-column
                                    prop="foreignFinancial"
                                    label="5.外币财务报表折算差额"
                                    sortable
                            />
                                                    <el-table-column
                                    prop="earningsPerShare"
                                    label="(一) 基本每股收益"
                                    sortable
                            />
                                                    <el-table-column
                                    prop="dilutedPerShare"
                                    label="(二) 稀释每股收益"
                                    sortable
                            />
                                                    <el-table-column
                                    prop="isDelete"
                                    label="删除标记"
                                    sortable
                            />
                                                <el-table-column
                                fixed="right"
                                header-align="center"
                                align="center"
                                label="操作"
                                width="180"
                        >
                            <template slot-scope="scope">
                                <el-button
                                        v-permission="'enterprise.enterprise.zb.income.statement.baseinfo'"
                                        type="text"
                                        size="small"
                                        @click.native.prevent="openShow(scope.row)"
                                >
                                    详情
                                </el-button>
                                <el-button
                                        v-permission="'enterprise.enterprise.zb.income.statement.baseinfo.update'"
                                        type="text"
                                        size="small"
                                        @click.native.prevent="openUpdate(scope.row)"
                                >
                                    修改
                                </el-button>
                                <el-button
                                        v-permission="'enterprise.enterprise.zb.income.statement.baseinfo.delete'"
                                        type="text"
                                        size="small"
                                        class="button-delete-color"
                                        @click.native.prevent="openDelete(scope.row)"
                                >
                                    删除
                                </el-button>
                            </template>
                        </el-table-column>
                    </el-table>
                </div>
                <div class="platform-content-list-pagination">
                    <el-pagination
                            :current-page="pageData.pageNo"
                            :page-size="pageData.pageSize"
                            :total="pageData.totalCount"
                            class="platform-pagenation"
                            background
                            :page-sizes="[10, 20, 30, 50]"
                            layout="sizes, prev, pager, next"
                            @current-change="doChangePage"
                            @size-change="doSizeChange"
                    />
                </div>
            </div>
        </div>

        <el-dialog
                title="新建"
                :visible.sync="createDialogVisible"
                :close-on-click-modal="false"
                width="50%"
        >
            <el-form
                    ref="createForm"
                    :model="formData"
                    :rules="formRules"
                    size="small"
                    label-width="120px"
            >
                                    <el-form-item
                            prop="operatingRevenue"
                            label="营业收入"
                    >
                        <el-input
                                v-model="formData.operatingRevenue"
                                maxlength="100"
                                placeholder="营业收入"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="operatingProfit"
                            label="营业利润"
                    >
                        <el-input
                                v-model="formData.operatingProfit"
                                maxlength="100"
                                placeholder="营业利润"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="profitTotal"
                            label="利润总额"
                    >
                        <el-input
                                v-model="formData.profitTotal"
                                maxlength="100"
                                placeholder="利润总额"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="netProfit"
                            label="净利润"
                    >
                        <el-input
                                v-model="formData.netProfit"
                                maxlength="100"
                                placeholder="净利润"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="otherProfit"
                            label="其他综合收益的税后净额"
                    >
                        <el-input
                                v-model="formData.otherProfit"
                                maxlength="100"
                                placeholder="其他综合收益的税后净额"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="comprehensiveTotal"
                            label="综合收益总额"
                    >
                        <el-input
                                v-model="formData.comprehensiveTotal"
                                maxlength="100"
                                placeholder="综合收益总额"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="earningsPeShare"
                            label="每股收益"
                    >
                        <el-input
                                v-model="formData.earningsPeShare"
                                maxlength="100"
                                placeholder="每股收益"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="marginSales"
                            label="销售净利率"
                    >
                        <el-input
                                v-model="formData.marginSales"
                                maxlength="100"
                                placeholder="销售净利率"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="grossSales"
                            label="销售毛利率"
                    >
                        <el-input
                                v-model="formData.grossSales"
                                maxlength="100"
                                placeholder="销售毛利率"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="interestCoverage"
                            label="已获利息倍数"
                    >
                        <el-input
                                v-model="formData.interestCoverage"
                                maxlength="100"
                                placeholder="已获利息倍数"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="revenueGrowth"
                            label="营业收入增长率"
                    >
                        <el-input
                                v-model="formData.revenueGrowth"
                                maxlength="100"
                                placeholder="营业收入增长率"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="companyId"
                            label="企业id（wx_business_information表id）"
                    >
                        <el-input
                                v-model="formData.companyId"
                                maxlength="100"
                                placeholder="企业id（wx_business_information表id）"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="lessOperatingCosts"
                            label="减：营业成本"
                    >
                        <el-input
                                v-model="formData.lessOperatingCosts"
                                maxlength="100"
                                placeholder="减：营业成本"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="taxesSurcharges"
                            label="税金及附加"
                    >
                        <el-input
                                v-model="formData.taxesSurcharges"
                                maxlength="100"
                                placeholder="税金及附加"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="sellingExpenses"
                            label="销售费用"
                    >
                        <el-input
                                v-model="formData.sellingExpenses"
                                maxlength="100"
                                placeholder="销售费用"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="overhead"
                            label="管理费用"
                    >
                        <el-input
                                v-model="formData.overhead"
                                maxlength="100"
                                placeholder="管理费用"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="financialExpenses"
                            label=" 财务费用"
                    >
                        <el-input
                                v-model="formData.financialExpenses"
                                maxlength="100"
                                placeholder=" 财务费用"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="impairmentLoss"
                            label="资产减值损失"
                    >
                        <el-input
                                v-model="formData.impairmentLoss"
                                maxlength="100"
                                placeholder="资产减值损失"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="expressedIncome"
                            label="加：公允价值变动收益（损失以“－”号填列）"
                    >
                        <el-input
                                v-model="formData.expressedIncome"
                                maxlength="100"
                                placeholder="加：公允价值变动收益（损失以“－”号填列）"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="investmentIncome"
                            label="投资收益（损失以“－”号填列）"
                    >
                        <el-input
                                v-model="formData.investmentIncome"
                                maxlength="100"
                                placeholder="投资收益（损失以“－”号填列）"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="associatesVentures"
                            label="其中：对联营企业和合营企业的投资收益"
                    >
                        <el-input
                                v-model="formData.associatesVentures"
                                maxlength="100"
                                placeholder="其中：对联营企业和合营企业的投资收益"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="plusIncome"
                            label="加：营业外收入"
                    >
                        <el-input
                                v-model="formData.plusIncome"
                                maxlength="100"
                                placeholder="加：营业外收入"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="gainsDisposal"
                            label="其中：非流动资产处置利得"
                    >
                        <el-input
                                v-model="formData.gainsDisposal"
                                maxlength="100"
                                placeholder="其中：非流动资产处置利得"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="lessExpenses"
                            label="减：营业外支出"
                    >
                        <el-input
                                v-model="formData.lessExpenses"
                                maxlength="100"
                                placeholder="减：营业外支出"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="nonAssets"
                            label=" 其中：非流动资产处置损失"
                    >
                        <el-input
                                v-model="formData.nonAssets"
                                maxlength="100"
                                placeholder=" 其中：非流动资产处置损失"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="taxIncome"
                            label="减：所得税费用"
                    >
                        <el-input
                                v-model="formData.taxIncome"
                                maxlength="100"
                                placeholder="减：所得税费用"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="profitFutureIncome"
                            label="(一)以后不能重分类进损益的其他综合收益"
                    >
                        <el-input
                                v-model="formData.profitFutureIncome"
                                maxlength="100"
                                placeholder="(一)以后不能重分类进损益的其他综合收益"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="refreshNetAssets"
                            label="重新计量设定受益计划净负债或净资产的变动"
                    >
                        <el-input
                                v-model="formData.refreshNetAssets"
                                maxlength="100"
                                placeholder="重新计量设定受益计划净负债或净资产的变动"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="underInvestee"
                            label="权益法下在被投资单位不能重分类进损益的其他综合收益中享有的份额"
                    >
                        <el-input
                                v-model="formData.underInvestee"
                                maxlength="100"
                                placeholder="权益法下在被投资单位不能重分类进损益的其他综合收益中享有的份额"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="profitReclassified"
                            label="(二)以后将重分类进损益的其他综合收益"
                    >
                        <el-input
                                v-model="formData.profitReclassified"
                                maxlength="100"
                                placeholder="(二)以后将重分类进损益的其他综合收益"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="comprehensive"
                            label="权益法下在被投资单位以后将重分类进损益的其他综合收益中享有的份额"
                    >
                        <el-input
                                v-model="formData.comprehensive"
                                maxlength="100"
                                placeholder="权益法下在被投资单位以后将重分类进损益的其他综合收益中享有的份额"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="financialAssets"
                            label="2.可供出售金融资产公允价值变动损益"
                    >
                        <el-input
                                v-model="formData.financialAssets"
                                maxlength="100"
                                placeholder="2.可供出售金融资产公允价值变动损益"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="maturityAssets"
                            label="3.持有至到期投资重分类可供出售金融资产损益"
                    >
                        <el-input
                                v-model="formData.maturityAssets"
                                maxlength="100"
                                placeholder="3.持有至到期投资重分类可供出售金融资产损益"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="portionCash"
                            label="4.现金流量套期损益的有效部分"
                    >
                        <el-input
                                v-model="formData.portionCash"
                                maxlength="100"
                                placeholder="4.现金流量套期损益的有效部分"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="foreignFinancial"
                            label="5.外币财务报表折算差额"
                    >
                        <el-input
                                v-model="formData.foreignFinancial"
                                maxlength="100"
                                placeholder="5.外币财务报表折算差额"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="earningsPerShare"
                            label="(一) 基本每股收益"
                    >
                        <el-input
                                v-model="formData.earningsPerShare"
                                maxlength="100"
                                placeholder="(一) 基本每股收益"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="dilutedPerShare"
                            label="(二) 稀释每股收益"
                    >
                        <el-input
                                v-model="formData.dilutedPerShare"
                                maxlength="100"
                                placeholder="(二) 稀释每股收益"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="isDelete"
                            label="删除标记"
                    >
                        <el-input
                                v-model="formData.isDelete"
                                maxlength="100"
                                placeholder="删除标记"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                            </el-form>
            <span slot="footer" class="dialog-footer">
        <el-button size="small" @click="createDialogVisible = false">取 消</el-button>
        <el-button
                size="small"
                type="primary"
                :loading="btnLoading"
                @click="doCreate"
        >确 定</el-button>
      </span>
        </el-dialog>
        <el-dialog
                title="查看详情"
                :visible.sync="showDialogVisible"
                :close-on-click-modal="false"
                width="50%"
        >
            <el-descriptions class="margin-top" colon="false" direction="horizontal" :column="1" :size="size" border="false">
                                    <el-descriptions-item>
                        <template slot="label">
                            营业收入
                        </template>
                        {{formData.operatingRevenue}}
                    </el-descriptions-item>
                                    <el-descriptions-item>
                        <template slot="label">
                            营业利润
                        </template>
                        {{formData.operatingProfit}}
                    </el-descriptions-item>
                                    <el-descriptions-item>
                        <template slot="label">
                            利润总额
                        </template>
                        {{formData.profitTotal}}
                    </el-descriptions-item>
                                    <el-descriptions-item>
                        <template slot="label">
                            净利润
                        </template>
                        {{formData.netProfit}}
                    </el-descriptions-item>
                                    <el-descriptions-item>
                        <template slot="label">
                            其他综合收益的税后净额
                        </template>
                        {{formData.otherProfit}}
                    </el-descriptions-item>
                                    <el-descriptions-item>
                        <template slot="label">
                            综合收益总额
                        </template>
                        {{formData.comprehensiveTotal}}
                    </el-descriptions-item>
                                    <el-descriptions-item>
                        <template slot="label">
                            每股收益
                        </template>
                        {{formData.earningsPeShare}}
                    </el-descriptions-item>
                                    <el-descriptions-item>
                        <template slot="label">
                            销售净利率
                        </template>
                        {{formData.marginSales}}
                    </el-descriptions-item>
                                    <el-descriptions-item>
                        <template slot="label">
                            销售毛利率
                        </template>
                        {{formData.grossSales}}
                    </el-descriptions-item>
                                    <el-descriptions-item>
                        <template slot="label">
                            已获利息倍数
                        </template>
                        {{formData.interestCoverage}}
                    </el-descriptions-item>
                                    <el-descriptions-item>
                        <template slot="label">
                            营业收入增长率
                        </template>
                        {{formData.revenueGrowth}}
                    </el-descriptions-item>
                                    <el-descriptions-item>
                        <template slot="label">
                            企业id（wx_business_information表id）
                        </template>
                        {{formData.companyId}}
                    </el-descriptions-item>
                                    <el-descriptions-item>
                        <template slot="label">
                            减：营业成本
                        </template>
                        {{formData.lessOperatingCosts}}
                    </el-descriptions-item>
                                    <el-descriptions-item>
                        <template slot="label">
                            税金及附加
                        </template>
                        {{formData.taxesSurcharges}}
                    </el-descriptions-item>
                                    <el-descriptions-item>
                        <template slot="label">
                            销售费用
                        </template>
                        {{formData.sellingExpenses}}
                    </el-descriptions-item>
                                    <el-descriptions-item>
                        <template slot="label">
                            管理费用
                        </template>
                        {{formData.overhead}}
                    </el-descriptions-item>
                                    <el-descriptions-item>
                        <template slot="label">
                             财务费用
                        </template>
                        {{formData.financialExpenses}}
                    </el-descriptions-item>
                                    <el-descriptions-item>
                        <template slot="label">
                            资产减值损失
                        </template>
                        {{formData.impairmentLoss}}
                    </el-descriptions-item>
                                    <el-descriptions-item>
                        <template slot="label">
                            加：公允价值变动收益（损失以“－”号填列）
                        </template>
                        {{formData.expressedIncome}}
                    </el-descriptions-item>
                                    <el-descriptions-item>
                        <template slot="label">
                            投资收益（损失以“－”号填列）
                        </template>
                        {{formData.investmentIncome}}
                    </el-descriptions-item>
                                    <el-descriptions-item>
                        <template slot="label">
                            其中：对联营企业和合营企业的投资收益
                        </template>
                        {{formData.associatesVentures}}
                    </el-descriptions-item>
                                    <el-descriptions-item>
                        <template slot="label">
                            加：营业外收入
                        </template>
                        {{formData.plusIncome}}
                    </el-descriptions-item>
                                    <el-descriptions-item>
                        <template slot="label">
                            其中：非流动资产处置利得
                        </template>
                        {{formData.gainsDisposal}}
                    </el-descriptions-item>
                                    <el-descriptions-item>
                        <template slot="label">
                            减：营业外支出
                        </template>
                        {{formData.lessExpenses}}
                    </el-descriptions-item>
                                    <el-descriptions-item>
                        <template slot="label">
                             其中：非流动资产处置损失
                        </template>
                        {{formData.nonAssets}}
                    </el-descriptions-item>
                                    <el-descriptions-item>
                        <template slot="label">
                            减：所得税费用
                        </template>
                        {{formData.taxIncome}}
                    </el-descriptions-item>
                                    <el-descriptions-item>
                        <template slot="label">
                            (一)以后不能重分类进损益的其他综合收益
                        </template>
                        {{formData.profitFutureIncome}}
                    </el-descriptions-item>
                                    <el-descriptions-item>
                        <template slot="label">
                            重新计量设定受益计划净负债或净资产的变动
                        </template>
                        {{formData.refreshNetAssets}}
                    </el-descriptions-item>
                                    <el-descriptions-item>
                        <template slot="label">
                            权益法下在被投资单位不能重分类进损益的其他综合收益中享有的份额
                        </template>
                        {{formData.underInvestee}}
                    </el-descriptions-item>
                                    <el-descriptions-item>
                        <template slot="label">
                            (二)以后将重分类进损益的其他综合收益
                        </template>
                        {{formData.profitReclassified}}
                    </el-descriptions-item>
                                    <el-descriptions-item>
                        <template slot="label">
                            权益法下在被投资单位以后将重分类进损益的其他综合收益中享有的份额
                        </template>
                        {{formData.comprehensive}}
                    </el-descriptions-item>
                                    <el-descriptions-item>
                        <template slot="label">
                            2.可供出售金融资产公允价值变动损益
                        </template>
                        {{formData.financialAssets}}
                    </el-descriptions-item>
                                    <el-descriptions-item>
                        <template slot="label">
                            3.持有至到期投资重分类可供出售金融资产损益
                        </template>
                        {{formData.maturityAssets}}
                    </el-descriptions-item>
                                    <el-descriptions-item>
                        <template slot="label">
                            4.现金流量套期损益的有效部分
                        </template>
                        {{formData.portionCash}}
                    </el-descriptions-item>
                                    <el-descriptions-item>
                        <template slot="label">
                            5.外币财务报表折算差额
                        </template>
                        {{formData.foreignFinancial}}
                    </el-descriptions-item>
                                    <el-descriptions-item>
                        <template slot="label">
                            (一) 基本每股收益
                        </template>
                        {{formData.earningsPerShare}}
                    </el-descriptions-item>
                                    <el-descriptions-item>
                        <template slot="label">
                            (二) 稀释每股收益
                        </template>
                        {{formData.dilutedPerShare}}
                    </el-descriptions-item>
                                    <el-descriptions-item>
                        <template slot="label">
                            删除标记
                        </template>
                        {{formData.isDelete}}
                    </el-descriptions-item>
                            </el-descriptions>
            <span slot="footer" class="dialog-footer">
        <el-button size="small" type="primary" @click="showDialogVisible = false">关 闭</el-button>
      </span>
        </el-dialog>
        <el-dialog
                title="修改分类"
                :visible.sync="updateDialogVisible"
                :close-on-click-modal="false"
                width="50%"
        >
            <el-form
                    ref="updateForm"
                    :model="formData"
                    :rules="formRules"
                    size="small"
                    label-width="120px"
            >
                                    <el-form-item
                            prop="operatingRevenue"
                            label="营业收入"
                    >
                        <el-input
                                v-model="formData.operatingRevenue"
                                maxlength="100"
                                placeholder="营业收入"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="operatingProfit"
                            label="营业利润"
                    >
                        <el-input
                                v-model="formData.operatingProfit"
                                maxlength="100"
                                placeholder="营业利润"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="profitTotal"
                            label="利润总额"
                    >
                        <el-input
                                v-model="formData.profitTotal"
                                maxlength="100"
                                placeholder="利润总额"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="netProfit"
                            label="净利润"
                    >
                        <el-input
                                v-model="formData.netProfit"
                                maxlength="100"
                                placeholder="净利润"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="otherProfit"
                            label="其他综合收益的税后净额"
                    >
                        <el-input
                                v-model="formData.otherProfit"
                                maxlength="100"
                                placeholder="其他综合收益的税后净额"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="comprehensiveTotal"
                            label="综合收益总额"
                    >
                        <el-input
                                v-model="formData.comprehensiveTotal"
                                maxlength="100"
                                placeholder="综合收益总额"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="earningsPeShare"
                            label="每股收益"
                    >
                        <el-input
                                v-model="formData.earningsPeShare"
                                maxlength="100"
                                placeholder="每股收益"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="marginSales"
                            label="销售净利率"
                    >
                        <el-input
                                v-model="formData.marginSales"
                                maxlength="100"
                                placeholder="销售净利率"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="grossSales"
                            label="销售毛利率"
                    >
                        <el-input
                                v-model="formData.grossSales"
                                maxlength="100"
                                placeholder="销售毛利率"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="interestCoverage"
                            label="已获利息倍数"
                    >
                        <el-input
                                v-model="formData.interestCoverage"
                                maxlength="100"
                                placeholder="已获利息倍数"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="revenueGrowth"
                            label="营业收入增长率"
                    >
                        <el-input
                                v-model="formData.revenueGrowth"
                                maxlength="100"
                                placeholder="营业收入增长率"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="companyId"
                            label="企业id（wx_business_information表id）"
                    >
                        <el-input
                                v-model="formData.companyId"
                                maxlength="100"
                                placeholder="企业id（wx_business_information表id）"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="lessOperatingCosts"
                            label="减：营业成本"
                    >
                        <el-input
                                v-model="formData.lessOperatingCosts"
                                maxlength="100"
                                placeholder="减：营业成本"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="taxesSurcharges"
                            label="税金及附加"
                    >
                        <el-input
                                v-model="formData.taxesSurcharges"
                                maxlength="100"
                                placeholder="税金及附加"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="sellingExpenses"
                            label="销售费用"
                    >
                        <el-input
                                v-model="formData.sellingExpenses"
                                maxlength="100"
                                placeholder="销售费用"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="overhead"
                            label="管理费用"
                    >
                        <el-input
                                v-model="formData.overhead"
                                maxlength="100"
                                placeholder="管理费用"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="financialExpenses"
                            label=" 财务费用"
                    >
                        <el-input
                                v-model="formData.financialExpenses"
                                maxlength="100"
                                placeholder=" 财务费用"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="impairmentLoss"
                            label="资产减值损失"
                    >
                        <el-input
                                v-model="formData.impairmentLoss"
                                maxlength="100"
                                placeholder="资产减值损失"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="expressedIncome"
                            label="加：公允价值变动收益（损失以“－”号填列）"
                    >
                        <el-input
                                v-model="formData.expressedIncome"
                                maxlength="100"
                                placeholder="加：公允价值变动收益（损失以“－”号填列）"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="investmentIncome"
                            label="投资收益（损失以“－”号填列）"
                    >
                        <el-input
                                v-model="formData.investmentIncome"
                                maxlength="100"
                                placeholder="投资收益（损失以“－”号填列）"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="associatesVentures"
                            label="其中：对联营企业和合营企业的投资收益"
                    >
                        <el-input
                                v-model="formData.associatesVentures"
                                maxlength="100"
                                placeholder="其中：对联营企业和合营企业的投资收益"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="plusIncome"
                            label="加：营业外收入"
                    >
                        <el-input
                                v-model="formData.plusIncome"
                                maxlength="100"
                                placeholder="加：营业外收入"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="gainsDisposal"
                            label="其中：非流动资产处置利得"
                    >
                        <el-input
                                v-model="formData.gainsDisposal"
                                maxlength="100"
                                placeholder="其中：非流动资产处置利得"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="lessExpenses"
                            label="减：营业外支出"
                    >
                        <el-input
                                v-model="formData.lessExpenses"
                                maxlength="100"
                                placeholder="减：营业外支出"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="nonAssets"
                            label=" 其中：非流动资产处置损失"
                    >
                        <el-input
                                v-model="formData.nonAssets"
                                maxlength="100"
                                placeholder=" 其中：非流动资产处置损失"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="taxIncome"
                            label="减：所得税费用"
                    >
                        <el-input
                                v-model="formData.taxIncome"
                                maxlength="100"
                                placeholder="减：所得税费用"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="profitFutureIncome"
                            label="(一)以后不能重分类进损益的其他综合收益"
                    >
                        <el-input
                                v-model="formData.profitFutureIncome"
                                maxlength="100"
                                placeholder="(一)以后不能重分类进损益的其他综合收益"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="refreshNetAssets"
                            label="重新计量设定受益计划净负债或净资产的变动"
                    >
                        <el-input
                                v-model="formData.refreshNetAssets"
                                maxlength="100"
                                placeholder="重新计量设定受益计划净负债或净资产的变动"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="underInvestee"
                            label="权益法下在被投资单位不能重分类进损益的其他综合收益中享有的份额"
                    >
                        <el-input
                                v-model="formData.underInvestee"
                                maxlength="100"
                                placeholder="权益法下在被投资单位不能重分类进损益的其他综合收益中享有的份额"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="profitReclassified"
                            label="(二)以后将重分类进损益的其他综合收益"
                    >
                        <el-input
                                v-model="formData.profitReclassified"
                                maxlength="100"
                                placeholder="(二)以后将重分类进损益的其他综合收益"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="comprehensive"
                            label="权益法下在被投资单位以后将重分类进损益的其他综合收益中享有的份额"
                    >
                        <el-input
                                v-model="formData.comprehensive"
                                maxlength="100"
                                placeholder="权益法下在被投资单位以后将重分类进损益的其他综合收益中享有的份额"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="financialAssets"
                            label="2.可供出售金融资产公允价值变动损益"
                    >
                        <el-input
                                v-model="formData.financialAssets"
                                maxlength="100"
                                placeholder="2.可供出售金融资产公允价值变动损益"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="maturityAssets"
                            label="3.持有至到期投资重分类可供出售金融资产损益"
                    >
                        <el-input
                                v-model="formData.maturityAssets"
                                maxlength="100"
                                placeholder="3.持有至到期投资重分类可供出售金融资产损益"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="portionCash"
                            label="4.现金流量套期损益的有效部分"
                    >
                        <el-input
                                v-model="formData.portionCash"
                                maxlength="100"
                                placeholder="4.现金流量套期损益的有效部分"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="foreignFinancial"
                            label="5.外币财务报表折算差额"
                    >
                        <el-input
                                v-model="formData.foreignFinancial"
                                maxlength="100"
                                placeholder="5.外币财务报表折算差额"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="earningsPerShare"
                            label="(一) 基本每股收益"
                    >
                        <el-input
                                v-model="formData.earningsPerShare"
                                maxlength="100"
                                placeholder="(一) 基本每股收益"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="dilutedPerShare"
                            label="(二) 稀释每股收益"
                    >
                        <el-input
                                v-model="formData.dilutedPerShare"
                                maxlength="100"
                                placeholder="(二) 稀释每股收益"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                                    <el-form-item
                            prop="isDelete"
                            label="删除标记"
                    >
                        <el-input
                                v-model="formData.isDelete"
                                maxlength="100"
                                placeholder="删除标记"
                                auto-complete="off"
                                type="text"
                        />
                    </el-form-item>
                            </el-form>
            <span slot="footer" class="dialog-footer">
        <el-button size="small" @click="updateDialogVisible = false">取 消</el-button>
        <el-button
                size="small"
                type="primary"
                :loading="btnLoading"
                @click="doUpdate"
        >确 定</el-button>
      </span>
        </el-dialog>
    </div>
</template>

<script>
    import {
        API_ENTERPRISE_ENTERPRISE_ZB_INCOME_STATEMENT_BASEINFO_LIST,
        API_ENTERPRISE_ENTERPRISE_ZB_INCOME_STATEMENT_BASEINFO_CREATE,
        API_ENTERPRISE_ENTERPRISE_ZB_INCOME_STATEMENT_BASEINFO_DELETE,
        API_ENTERPRISE_ENTERPRISE_ZB_INCOME_STATEMENT_BASEINFO_UPDATE,
        API_ENTERPRISE_ENTERPRISE_ZB_INCOME_STATEMENT_BASEINFO_GET
    } from '@/constant/api/enterprise/enterprise/zb/income/statement/baseinfo'
    export default {
        middleware: ['authenticated', 'check_permissions'],
        data() {
            return {
                loading: true,
                btnLoading: false,
                listLoading: false,
                createDialogVisible: false,
                updateDialogVisible: false,
                showDialogVisible: false,
                showSearch: false,
                listData: [],
                pageData: {
                    pageNo: 1,
                    pageSize: 10,
                    totalCount: 0,
                    pageOrderName: 'createdAt',
                    pageOrderBy: 'descending'
                },
                formData: {
                },
                editData: {
                }
            }
        },
        computed: {
            // 表单验证,写在computed里切换多语言才会更新
            formRules() {
                const formRules = {
                                                operatingRevenue: [
                            {
                                required: false,
                                message: '营业收入',
                                trigger: 'blur'
                            }
                        ],
                                                operatingProfit: [
                            {
                                required: false,
                                message: '营业利润',
                                trigger: 'blur'
                            }
                        ],
                                                profitTotal: [
                            {
                                required: false,
                                message: '利润总额',
                                trigger: 'blur'
                            }
                        ],
                                                netProfit: [
                            {
                                required: false,
                                message: '净利润',
                                trigger: 'blur'
                            }
                        ],
                                                otherProfit: [
                            {
                                required: false,
                                message: '其他综合收益的税后净额',
                                trigger: 'blur'
                            }
                        ],
                                                comprehensiveTotal: [
                            {
                                required: false,
                                message: '综合收益总额',
                                trigger: 'blur'
                            }
                        ],
                                                earningsPeShare: [
                            {
                                required: false,
                                message: '每股收益',
                                trigger: 'blur'
                            }
                        ],
                                                marginSales: [
                            {
                                required: false,
                                message: '销售净利率',
                                trigger: 'blur'
                            }
                        ],
                                                grossSales: [
                            {
                                required: false,
                                message: '销售毛利率',
                                trigger: 'blur'
                            }
                        ],
                                                interestCoverage: [
                            {
                                required: false,
                                message: '已获利息倍数',
                                trigger: 'blur'
                            }
                        ],
                                                revenueGrowth: [
                            {
                                required: false,
                                message: '营业收入增长率',
                                trigger: 'blur'
                            }
                        ],
                                                companyId: [
                            {
                                required: false,
                                message: '企业id（wx_business_information表id）',
                                trigger: 'blur'
                            }
                        ],
                                                lessOperatingCosts: [
                            {
                                required: false,
                                message: '减：营业成本',
                                trigger: 'blur'
                            }
                        ],
                                                taxesSurcharges: [
                            {
                                required: false,
                                message: '税金及附加',
                                trigger: 'blur'
                            }
                        ],
                                                sellingExpenses: [
                            {
                                required: false,
                                message: '销售费用',
                                trigger: 'blur'
                            }
                        ],
                                                overhead: [
                            {
                                required: false,
                                message: '管理费用',
                                trigger: 'blur'
                            }
                        ],
                                                financialExpenses: [
                            {
                                required: false,
                                message: ' 财务费用',
                                trigger: 'blur'
                            }
                        ],
                                                impairmentLoss: [
                            {
                                required: false,
                                message: '资产减值损失',
                                trigger: 'blur'
                            }
                        ],
                                                expressedIncome: [
                            {
                                required: false,
                                message: '加：公允价值变动收益（损失以“－”号填列）',
                                trigger: 'blur'
                            }
                        ],
                                                investmentIncome: [
                            {
                                required: false,
                                message: '投资收益（损失以“－”号填列）',
                                trigger: 'blur'
                            }
                        ],
                                                associatesVentures: [
                            {
                                required: false,
                                message: '其中：对联营企业和合营企业的投资收益',
                                trigger: 'blur'
                            }
                        ],
                                                plusIncome: [
                            {
                                required: false,
                                message: '加：营业外收入',
                                trigger: 'blur'
                            }
                        ],
                                                gainsDisposal: [
                            {
                                required: false,
                                message: '其中：非流动资产处置利得',
                                trigger: 'blur'
                            }
                        ],
                                                lessExpenses: [
                            {
                                required: false,
                                message: '减：营业外支出',
                                trigger: 'blur'
                            }
                        ],
                                                nonAssets: [
                            {
                                required: false,
                                message: ' 其中：非流动资产处置损失',
                                trigger: 'blur'
                            }
                        ],
                                                taxIncome: [
                            {
                                required: false,
                                message: '减：所得税费用',
                                trigger: 'blur'
                            }
                        ],
                                                profitFutureIncome: [
                            {
                                required: false,
                                message: '(一)以后不能重分类进损益的其他综合收益',
                                trigger: 'blur'
                            }
                        ],
                                                refreshNetAssets: [
                            {
                                required: false,
                                message: '重新计量设定受益计划净负债或净资产的变动',
                                trigger: 'blur'
                            }
                        ],
                                                underInvestee: [
                            {
                                required: false,
                                message: '权益法下在被投资单位不能重分类进损益的其他综合收益中享有的份额',
                                trigger: 'blur'
                            }
                        ],
                                                profitReclassified: [
                            {
                                required: false,
                                message: '(二)以后将重分类进损益的其他综合收益',
                                trigger: 'blur'
                            }
                        ],
                                                comprehensive: [
                            {
                                required: false,
                                message: '权益法下在被投资单位以后将重分类进损益的其他综合收益中享有的份额',
                                trigger: 'blur'
                            }
                        ],
                                                financialAssets: [
                            {
                                required: false,
                                message: '2.可供出售金融资产公允价值变动损益',
                                trigger: 'blur'
                            }
                        ],
                                                maturityAssets: [
                            {
                                required: false,
                                message: '3.持有至到期投资重分类可供出售金融资产损益',
                                trigger: 'blur'
                            }
                        ],
                                                portionCash: [
                            {
                                required: false,
                                message: '4.现金流量套期损益的有效部分',
                                trigger: 'blur'
                            }
                        ],
                                                foreignFinancial: [
                            {
                                required: false,
                                message: '5.外币财务报表折算差额',
                                trigger: 'blur'
                            }
                        ],
                                                earningsPerShare: [
                            {
                                required: false,
                                message: '(一) 基本每股收益',
                                trigger: 'blur'
                            }
                        ],
                                                dilutedPerShare: [
                            {
                                required: false,
                                message: '(二) 稀释每股收益',
                                trigger: 'blur'
                            }
                        ],
                                                isDelete: [
                            {
                                required: false,
                                message: '删除标记',
                                trigger: 'blur'
                            }
                        ],
                                    }
                return formRules
            }
        },


        created() {
            if (process.browser) {
                this.listPage()
            }
        },
        methods: {
            // 打开字新增窗口
            openCreate() {
                this.formData = {}
                this.createDialogVisible = true
            },
            // 提交表单
            doCreate() {
                this.$refs['createForm']
                        .validate( (valid) => {
                if (valid) {
                this.btnLoading = true
                this.$axios
                .$post(API_ENTERPRISE_ENTERPRISE_ZB_INCOME_STATEMENT_BASEINFO_CREATE, this.formData)
                .then((d) => {
                this.btnLoading = false
                if (d.code === 0) {
                this.$message({
                message: d.msg,
                type: 'success'
                })
                this.createDialogVisible = false
                this.listPage()
                }
                })
                }
                })
            },
            // 打开修改窗口
            openUpdate(row) {
                this.editData.id = row.id
                this.$axios.$post(API_ENTERPRISE_ENTERPRISE_ZB_INCOME_STATEMENT_BASEINFO_GET, this.editData).then((d) => {
                    if (d.code === 0) {
                        this.formData = d.data
                        this.updateDialogVisible = true
                    }
                })
            },
            // 打开详情窗口
            openShow(row) {
                this.editData.id = row.id
                this.$axios.$post(API_ENTERPRISE_ENTERPRISE_ZB_INCOME_STATEMENT_BASEINFO_GET, this.editData).then((d) => {
                    if (d.code === 0) {
                        this.formData = d.data
                        this.showDialogVisible = true
                    }
                })
            },
            // 提交表单
            doUpdate() {
                this.$refs['updateForm']
                        .validate((valid) => {
                if (valid) {
                this.btnLoading = true
                this.$axios
                .$post(API_ENTERPRISE_ENTERPRISE_ZB_INCOME_STATEMENT_BASEINFO_UPDATE, this.formData)
                .then((d) => {
                this.btnLoading = false
                if (d.code === 0) {
                this.$message({
                message: d.msg,
                type: 'success'
                })
                this.updateDialogVisible = false
                this.listPage()
                }
                })
                }
                })
            },
            // 执行删除
            openDelete(row) {
                this.editData.id = row.id
                this.$confirm(
                        '确定删除该条数据 ？',
                        '操作提示',
                        {
                            confirmButtonText: '确 定',
                            cancelButtonText: '取 消',
                            type: 'warning'
                        }
                ).then(() => {
                    this.btnLoading = true
                    this.$axios
                            .$post(API_ENTERPRISE_ENTERPRISE_ZB_INCOME_STATEMENT_BASEINFO_DELETE, this.editData)
                            .then((res) => {
                                this.btnLoading = false
                                if (res.code === 0) {
                                    this.$message({
                                        message: res.msg,
                                        type: 'success'
                                    })
                                    this.listPage()
                                }
                            })
                }).catch(() => {})
            },
            // 页码变动事件
            doChangePage(val) {
                this.pageData.pageNo = val
                this.listPage()
            },
            // 页大小变动事件
            doSizeChange(val) {
                this.pageData.pageSize = val
                this.listPage()
            },
            // 页排序事件
            doPageSort(column) {
                this.pageData.pageOrderName = column.prop
                this.pageData.pageOrderBy = column.order
                this.listPage()
            },
            // 获取分页查询数据
            listPage() {
                this.listLoading = true
                this.$axios.$post(API_ENTERPRISE_ENTERPRISE_ZB_INCOME_STATEMENT_BASEINFO_LIST, this.pageData).then((res) => {
                    this.listLoading = false
                    if (res.code === 0) {
                        this.listData = res.data.list
                        this.pageData.totalCount = res.data.totalCount
                    }
                })
            },
            // 条件查询展示第一页内容
            doSearch() {
                this.pageData.pageNo = 1
                this.listPage()
            },
            doReSearch() {
                this.pageData = {
                    pageNo: 1,
                    pageSize: 10,
                    totalCount: 0,
                    pageOrderName: 'createdAt',
                    pageOrderBy: 'descending'
                }
                this.$refs['searchForm'].resetFields()
            },
            changeSearch() {
                this.showSearch = !this.showSearch
            }
        }
    }

</script>
